import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index2'
import  "./util/filter.js";
import axios from 'axios'
import VueAxios from 'vue-axios'

import 'vant/lib/index.less';
import 'lib-flexible/flexible';

import { Tabbar, TabbarItem } from 'vant';
import { Search } from 'vant';
import { Icon } from 'vant';
import 'vant/lib/icon/local.css';
import { Swipe, SwipeItem } from 'vant';
import { NavBar } from 'vant';
import { Lazyload } from 'vant';
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';
import { Button } from 'vant';
import { Tab, Tabs } from 'vant';
import { Card } from 'vant';
import { Checkbox, CheckboxGroup } from 'vant';
import { SubmitBar } from 'vant';
import { TreeSelect } from 'vant';
import { Image as VanImage } from 'vant';
import { Tag } from 'vant';

import { Form } from 'vant';
import { Field } from 'vant';

Vue.use(Form);
Vue.use(Field);
Vue.use(Tag);
Vue.use(VanImage);
Vue.use(TreeSelect);
Vue.use(SubmitBar);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Card);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Button);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Lazyload);
Vue.use(NavBar);
Vue.use(Swipe).use(SwipeItem);
Vue.use(Icon);
Vue.use(Search);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(VueAxios, axios)
Vue.config.productionTip = false

let app = new Vue({
  store,
  router,
  render: h => h(App),
  created(){
    Vue.prototype.$bus = new Vue()
  }
}).$mount('#app')

window.Vue=app